package v1

import "github.com/gogf/gf/v2/frame/g"

type LoginReq struct {
	g.Meta   `path:"/login"  method:"post" summary:"login"`
	Username string `json:"username" v:"required"`
	Password string `json:"password" v:"required|password"`
}

type LoginRes struct{}

type LogoutReq struct {
	g.Meta `path:"/logout" method:"post" summary:"logout"`
}

type LogoutRes struct{}

type RegisterReq struct {
	g.Meta    `path:"/register" method:"post" summary:"register"`
	Username  string `json:"username" v:"required"`
	Password  string `json:"password" v:"required|password"`
	Password2 string `json:"password2" v:"required|same:Password"`
	Telephone string `json:"telephone" v:"telephone"`
}

type RegisterRes struct{}
